package com.n9.qq.android.RegisterProxySvcPack;

import java.io.Serializable;

/**
 * @author ice
 * @since 2019/3/4 9:49
 */
public final class MsgFilter implements Serializable {
    public static final MsgFilter LIMIT_10_AND_IN_3_DAYS;
    public static final MsgFilter NO_FILTER;
    public static final int _LIMIT_10_AND_IN_3_DAYS = 1;
    public static final int _NO_FILTER = 0;
    private static MsgFilter[] a;
    private String __T = new String();
    private int __value;

    static {
        boolean var0;
        if (!MsgFilter.class.desiredAssertionStatus()) {
            var0 = true;
        } else {
            var0 = false;
        }

        a = new MsgFilter[2];
        NO_FILTER = new MsgFilter(0, 0, "NO_FILTER");
        LIMIT_10_AND_IN_3_DAYS = new MsgFilter(1, 1, "LIMIT_10_AND_IN_3_DAYS");
    }

    private MsgFilter(int var1, int var2, String var3) {
        this.__T = var3;
        this.__value = var2;
        a[var1] = this;
    }

    public static MsgFilter convert(int var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].__value == var0) {
                return a[i];
            }
        }
        return null;
    }

    public static MsgFilter convert(String var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].__T.equals(var0)) {
                return a[i];
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.__T;
    }

    public int value() {
        return this.__value;
    }
}
